/**
 * 存储服务统一导出
 */

// v1.0 LocalStorage相关
export * from './types'
export * from './storageKeys'
export * from './storageErrors'
export { localStorageAdapter } from './storageAdapter'

// v2.0 IndexedDB相关
export { db, initializeDatabase, clearDatabase, deleteDatabase } from './indexedDB/database'
export { IndexedDBAdapter } from './indexedDB/indexedDBAdapter'
export { AssetManager } from './indexedDB/assetManager'
export {
  type StoredDocument,
  type DocumentVersion,
  type StoredStoryboard,
  type StoredAsset,
  type StoredConfig,
  contentToStoredDocument,
  storedDocumentToContent
} from './indexedDB/types'

// 数据迁移
export { StorageMigrator } from './migration/migrator'
export {
  type MigrationSummary,
  MigrationStatus,
  type MigrationConfig
} from './migration/types'

// 存储工厂(推荐使用)
export { StorageFactory, getStorage, getStorageSync } from './storageFactory'
